import React from 'react';
import { formatMessage } from 'umi-plugin-react/locale';
import { Button } from 'antd';
import router from 'umi/router';
import Link from 'umi/link';
import Exception from '@/components/Exception';

const actions = (
  <div>
    <Button type="primary" onClick={() => router.push('/')}>
      首页
    </Button>
    <Button
      onClick={() => {
        router.push('/user/login');
      }}
    >
      重新登陆
    </Button>
  </div>
);
const Exception403 = () => (
  <Exception
    type="403"
    desc={formatMessage({ id: 'app.exception.description.403' })}
    backText={formatMessage({ id: 'app.exception.back' })}
    actions={actions}
  />
);

export default Exception403;
